<template>
  <div v-if="num>=1">
    <h2>{{ num }}</h2>
    <num :num="num-1"/>
  </div>
</template>
<script lang="ts">
export default {
  props: {
    num: {
      type: Number,
      default: 5,
    }
  }
}
</script>
